home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
8bitfiles.net/archives
/
archives.tar
/
archives
/
compuserve-file-archive
/
20 Music & Utilities
/
CHLOE.SAL
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2019-04-13
|
4KB
|
29 lines
100 PRINT CHR$(147):PRINT " SIDPLAYER SINGALONG SONG DISSOLVER"
110 PRINT " BY CRAIG CHAMBERLAIN 6/25/86":PRINT:SP=783
130 WR=3105:A=WR+70:L=PEEK(A):FOR K=1 TO L:F$=F$+CHR$(PEEK(A+K)):NEXT:A=A+K
140 ML=PEEK(A)+256*PEEK(A+1):MA=A+2:A=MA+ML:WL=PEEK(A)+256*PEEK(A+1):WA=A+2
150 A=WA+1
155 P=PEEK(A):IF P<>34 THEN T$=T$+CHR$(P):A=A+1:GOTO 155
300 PRINT " THIS PROGRAM WRITES TO DISK":PRINT " THE MUSIC AND WORD FILES FOR
305 [153] " THE FOLLOWING SINGALONG SONG:":[153]
310 [153] " " T$:[153]
320 [153] " INSERT A DISK TO RECEIVE":[153] " THE MUSIC AND WORD FILES,
325 PRINT " AND PRESS ANY KEY":PRINT
330 POKE 198,0:WAIT 198,15:GET G$
400 OPEN 2,8,15,"I0:":INPUT#2,A,B$,C,D:IF A GOTO 710
410 PRINT " WRITING " F$ ".MUS"
420 OPEN 1,8,2,F$+".MUS,W,P":INPUT#2,A,B$,C,D:IF A GOTO 710
430 SYS WR,MA,MA+ML:IF PEEK(SP)AND1 GOTO 700
440 CLOSE 1:INPUT#2,A,B$,C,D:IF A GOTO 710
510 PRINT " WRITING " F$ ".WDS"
520 OPEN 1,8,2,F$+".WDS,W,P":INPUT#2,A,B$,C,D:IF A GOTO 710
530 SYS WR,WA,WA+WL:IF PEEK(SP)AND1 GOTO 700
540 CLOSE 1:INPUT#2,A,B$,C,D:IF A GOTO 710
600 PRINT:PRINT " SCRATCH " F$ ".SAL? ";
610 WAIT 198,15:GET G$:IF G$="N" THEN PRINT "NO":GOTO 690
620 IF G$<>"Y" GOTO 610
630 PRINT "YES":PRINT#2,"S0:"+F$+".SAL":INPUT#2,A,B$,C,D:IF A>2 GOTO 710
690 CLOSE 2:END
700 INPUT#2,A,B$,C,D
710 PRINT:PRINT " ERROR: " B$:CLOSE 1:CLOSE 2:END